<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <title>信息修改</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="../assets/images/favicon.ico">

    <!-- App css -->
    <link href="../assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/jquery-ui.min.css" rel="stylesheet">
    <link href="../assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/metisMenu.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/app.min.css" rel="stylesheet" type="text/css" />

</head>
<body>

<!-- Top Bar Start -->
<div th:replace="~{common/top-nav::top-nav}"></div>
<!-- Top Bar End -->

<!-- Left Sidenav -->
<div th:replace="~{common/left-side-nav::left-side-nav}"></div>
<!-- end left-sidenav-->

<div class="page-wrapper">
    <!-- Page Content-->
    <div class="page-content">

        <div class="container-fluid">
            <!-- Page-Title -->
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title-box">
                        <h4 class="page-title">短信息编辑</h4>
                    </div>
                    <!--end page-title-box-->
                </div>
                <!--end col-->
            </div>
            <!-- end page title end breadcrumb -->

            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="row">
                                <div class="col-lg-12">
                                    <form th:action="@{/message/message_modify}" method="post">
                                        <input type="hidden" name="id" th:value="${message.id}"/>
                                        <input type="hidden" name="pageSize" th:value="${param.pageSize}">
                                        <input type="hidden" name="pageNum" th:value="${param.pageNum}">
                                        <input type="hidden" name="keyword" th:value="${param.keyword}">
                                        <div class="form-group row">
                                            <label for="receiverId"
                                                   class="col-sm-2 col-form-label text-right">接受者ID</label>
                                            <div class="col-sm-8">
                                                <input class="form-control" type="text"
                                                       th:value="${message.receiverId}"
                                                       name="receiverId"
                                                       id="receiverId">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="senderId"
                                                   class="col-sm-2 col-form-label text-right">发送者ID</label>
                                            <div class="col-sm-8">
                                                <input class="form-control" type="text" th:value="${message.senderId}"
                                                       name="senderId"
                                                       id="senderId">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="title"
                                                   class="col-sm-2 col-form-label text-right">信息标题</label>
                                            <div class="col-sm-8">
                                                <input class="form-control" type="text" th:value="${message.title}"
                                                       name="title"
                                                       id="title">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="content"
                                                   class="col-sm-2 col-form-label text-right">信息内容</label>
                                            <div class="col-sm-8">
                                                <textarea class="form-control" type="text" th:text="${message != null ? message.content : ''}"
                                                          name="content" id="content" rows="5"></textarea>
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="sendTime"
                                                   class="col-sm-2 col-form-label text-right">发送时间</label>
                                            <div class="col-sm-8">
                                                <input class="form-control" type="text" th:value="${message.sendTime}"
                                                       name="sendTime"
                                                       id="sendTime">
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="isRead"
                                                   class="col-sm-2 col-form-label text-right">信息状态</label>
                                            <div class="col-sm-8">
                                                <select class="form-control" id="isRead" name="isRead"
                                                        th:value="${message.isRead}">
                                                    <option>已读</option>
                                                    <option>未读</option>
                                                    <option>未发送</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-10 ml-auto">
                                                <button type="submit"
                                                        class="btn btn-gradient-primary">保存</button>
                                                <button type="reset"
                                                        class="btn btn-gradient-danger">重置</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <!--end card-body-->
                    </div>
                    <!--end card-->
                </div>
                <!--end col-->
            </div>
            <!--end row-->

        </div><!-- container -->
        <!--end footer-->
    </div>
    <!-- end page content -->
</div>
<!-- end page-wrapper -->

<!-- jQuery  -->
<script src="../assets/js/jquery.min.js"></script>
<script src="../assets/js/jquery-ui.min.js"></script>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
<script src="../assets/js/metismenu.min.js"></script>
<script src="../assets/js/waves.js"></script>
<script src="../assets/js/feather.min.js"></script>
<script src="../assets/js/jquery.slimscroll.min.js"></script>

<script src="../../plugins/tiny-editable/mindmup-editabletable.js"></script>
<script src="../../plugins/tiny-editable/numeric-input-example.js"></script>
<script src="../../plugins/bootable/bootstable.js"></script>
<script src="../assets/pages/jquery.tabledit.init.js"></script>

<!-- App js -->
<script src="../assets/js/app.js"></script>

</body>

</html>